package com.bhms.module.users.org.service;

import java.util.List;

import com.bhms.module.users.org.mapper.Organization;
import com.bhms.module.users.org.mapper.OrganizationMapper;

public class OrganizationServiceBean implements OrganizationService {

	private OrganizationMapper organizationMapper;

	/**
	 * 查询业务组织机构处理方法
	 * 
	 * @return
	 */
	@Override
	public List<Organization> searchOrganization(Organization organization) {
		int totalCount = organizationMapper.count(organization);
		organization.setTotalLine(totalCount);
		return organizationMapper.select(organization);
	}

	public void setOrganizationMapper(OrganizationMapper organizationMapper) {
		this.organizationMapper = organizationMapper;
	}
}
